﻿/**
作者：
 */
package com.zito.pojo;

import com.downlove.database.POJO;
import com.downlove.database.QueryHelper;

public class WeblinkPOJO extends POJO {

	private String _name;
	private int _islogo;
	private String _logo;
	private String _url;
	private int _orders;
	private String _types;

	public void setName(String name) {
		this._name = name;
	}

	public String getName() {
		return _name;
	}

	public void setIslogo(int islogo) {
		this._islogo = islogo;
	}

	public int getIslogo() {
		return _islogo;
	}

	public void setLogo(String logo) {
		this._logo = logo;
	}

	public String getLogo() {
		return _logo;
	}

	public void setUrl(String url) {
		this._url = url;
	}

	public String getUrl() {
		return _url;
	}

	public void setOrders(int orders) {
		this._orders = orders;
	}

	public int getOrders() {
		return _orders;
	}

	public void setTypes(String types) {
		this._types = types;
	}

	public String getTypes() {
		return _types;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public boolean update() {
		String sql = "update "
				+ TableName()
				+ " set name=?,islogo=?,logo=?,url=?,orders=?,types=? where id=?";
		int tmp = QueryHelper.update(sql, getName(), getIslogo(), getLogo(),
				getUrl(), getOrders(), getTypes(), getId());
		if (tmp > 0) {
			Evict(true);
		}
		return true;
	}
}
